import java.util.Arrays;
import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Pro02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个数插进原数组：\n");
        int[] a ={78,67,53,32,23,16};

            System.out.println("yuan"+Arrays.toString(a));

        int[] b = new int[a.length+1];
        System.arraycopy(a,0,b,0,a.length);
        for (int i = 0; i < b.length; i++) {
            if (b[i]==0){
                b[i] = sc.nextInt();
                break;
            }
        }
        Arrays.sort(b);
        System.out.println(Arrays.toString(b));
    }
}
